<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<center class="center-scroll">
	<!-- 统计结果表格 -->
	<table>
		<!--调查信息-->
		<tr>
			<td>
				<table class="list_grid">
					<thead>
				        <tr><th>用户投票结果统计</th></tr>
					</thead>
				</table>
				<table class="list_grid no-hover" style="border-spacing: 0;">
					<tr><td class="survey-info-label">问卷名称：</td><td class="survey-info-text">${qualitySurvey.survey_name}</td></tr>
					<tr><td class="survey-info-label">截止时间：</td><td class="survey-info-text">${qualitySurvey.end_time}</td></tr>
					<tr><td class="survey-info-label">邀请人数：</td><td class="survey-info-text">${qualitySurvey.ask_num}</td></tr>
					<tr><td class="survey-info-label">已投票人数：</td><td class="survey-info-text">${qualitySurvey.vote_num}</td></tr>
					<tr><td class="survey-info-label">生成时间：</td><td class="survey-info-text">${qualitySurvey.create_date}</td></tr>
				</table>
			</td>
		</tr>
		<!-- 调查问题列表 -->
		<tr>
			<td>
				<table class="list_grid">
					<thead id="QualityResult">
					</thead>
				</table>
			</td>
		</tr>
		<!-- 数据区域 -->
		<tr>
			<td>
				<div class="list_scrollControlDiv">
					<table class="list_grid" style="border-spacing: 0;">
						<tbody id="QualityResultList">
						</tbody>
					</table>
				</div>
			</td>
		</tr>
	</table>
	<!-- 调查问卷ID -->
	<input type="hidden" id="SurveyId" value="${qualitySurvey.survey_id}"/>
</center>
<div class="fixed-buttons">
	<!-- 分页控件区域 -->
	<div id="pagination" class="pagination"></div>
	<!-- 导出按钮 -->
	<form action="${ctx}/survey/surveyStatistics/qualitySurveyStatistics/qualitySurveyStatisticsExport.do" id="QualityExportForm" name="qualityExportForm" class="export-form">
		  <% 
		  	String autho = (String)session.getAttribute("SESSION_AUTHORITY");
 			if(autho!=null && autho.indexOf("admin")>=0){
 		   %>
 		   <input type="hidden" name="survey_id" value="${qualitySurvey.survey_id}"/>
		   <div type="button" class="toolButton"  id="QualityExportFunc" align="center">导出</div>
		   <div class="toolButton" onclick="reBack()" align="center">返回</div>
		  <%} %>
 	</form>
</div>
<script type="text/javascript" src="${ctx}/res/js/survey/surveyStatistics/qualitySurveyStatistics.js"></script>